﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WaiShop.Core;
using WaiShop.Model;

namespace WaiShop.BLL.Service
{
    public class UserInfoRepositoty : IUserInfoRepositoty
    {
        /// <summary>
        /// 得到用户信息
        /// </summary>
        /// <param name="username"></param>
        /// <param name="pwd"></param>
        /// <returns></returns>
        public UserInfo GetUserInfo(string username, string pwd)
        {
            string sql = "select * from UserInfo";
            return DapperHelper<UserInfo>.QueryFirst(sql,new UserInfo() { UserName=username,Pwd=pwd});
        }
    }
}
